#-------------------------------------------------
#
# Project created by QtCreator 2022-03-29T15:58:57
#
#-------------------------------------------------

QT       += core gui

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

TARGET = face-recogition
TEMPLATE = app

# The following define makes your compiler emit warnings if you use
# any feature of Qt which as been marked as deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if you use deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

QMAKE_CXXFLAGS += -fopenmp

INCLUDEPATH +=  /usr/local/include \
                /home/fz/wj-work/face/ncnn-20220216-full-source/build/install/include

LIBS +=  -L/usr/local/lib \
            -L/usr/lib/aarch64-linux-gnu \
            -L/home/fz/wj-work/face/ncnn-20220216-full-source/build/install/lib \
            -L/home/fz/wj-work/KWS-iflytek/libs/aarch64

LIBS +=  -lopencv_highgui -lopencv_core \
            -lopencv_imgproc -lopencv_imgcodecs \
            -lopencv_shape  -lopencv_videoio -lncnn -fopenmp 

SOURCES += \
        main.cpp \
        mainwindow.cpp \
    faceprocessor.cpp \
    face_recognizer/src/mobilefacenet.cpp \
    face_recognizer/src/face_recognizer.cpp \
    face_recognizer/src/face_recognizer_impl.cpp \
    face_recognizer/src/face_aligner.cpp \
    face_detector/src/retinaface.cpp \
    face_detector/src/face_detector.cpp \
    face_detector/src/face_detector_impl.cpp \
    imagecapture.cpp \
    imageprocess.cpp 

HEADERS += \
        mainwindow.h \
    faceprocessor.h \
    face_detector/include/retinaface.h \
    face_detector/include/face_detector.h \
    face_detector/include/face_detector_impl.h \
    face_detector/include/common.h \
    face_recognizer/include/mobilefacenet.h \
    face_recognizer/include/face_recognizer.h \
    face_recognizer/include/face_recognizer_impl.h \
    face_recognizer/include/face_aligner.h \
    imagecapture.h \
    imageprocess.h 

FORMS += \
        mainwindow.ui
